package com.travelsmart.server.control;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.travelsmart.client.control.AdminService;


public class AdminServiceImpl extends RemoteServiceServlet implements AdminService {

	private static final long serialVersionUID = -7993439365297459509L;

	@Override
	public void logout() {
		this.getThreadLocalRequest().getSession().invalidate();
	}

	@Override
	public String getUserName() {
		return this.getThreadLocalRequest().getUserPrincipal().getName();
	}
	

}
